package com.freemyleft.left.left_app.mian.index.my.mywallet.share.adapter;

import com.freemyleft.left.left_app.R;
import com.freemyleft.left.zapp.ui.recycler.MultipleItemEntity;
import com.freemyleft.left.zapp.ui.recycler.MultipleRecyclerAdapter;
import com.freemyleft.left.zapp.ui.recycler.MultipleViewHolder;

import java.util.List;

public class SharedAdapter extends MultipleRecyclerAdapter {
    public final  static int SHARED_TYPE=222;
    public SharedAdapter(List<MultipleItemEntity> data) {
        super(data);
        addItemType(SHARED_TYPE, R.layout.item_shared);
    }

    @Override
    protected void convert(MultipleViewHolder holder, MultipleItemEntity entity) {
        super.convert(holder, entity);
        String time=entity.getField(ShareFlies.TIME);
        String id=entity.getField(ShareFlies.ID);
        String stastus=entity.getField(ShareFlies.STASTUS);
        holder.setText(R.id.tv_id,id);
        holder.setText(R.id.date,time);
        holder.setText(R.id.tv_status,stastus);
    }
    public enum ShareFlies{
        TIME,ID,STASTUS
    }
}
